<%@ page language="java" contentType="text/html; charset=UTF-8" isErrorPage="true" pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*"%>
<%@page import="org.apache.log4j.Logger"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>系统错误</title>
		<base href="<%=basePath%>" />
		<style type="text/css">
		<!--
body {
	margin: 0;
	padding: 0 100px;
	font: 12px "Segoe UI", Helvetica, Arial, sans-serif;
	background: url(/ty/theme/images/error_bg.png) repeat-x 0 -70px;
}

h1 {
	padding-left: 70px;
	height: 70px;
	line-height: 70px;
	margin: 0 0 0 -70px;
	font-size: 130%;
	white-space: nowrap;
	background: url(/ty/theme/images/error_bg.png) no-repeat;
}

ul {
	margin: 40px 0;
	padding: 0 0 0 1.2em;
	font-size: 120%;
}

li {
	margin-bottom: 0.2em;
}

pre {
	margin: 5px 10px 0 0;
	padding: 10px;
	background: #ffe;
	white-space: pre;
}

code {
	font-size: 90%;
	font-family:宋体, Consolas, "Courier New", monospace;
}

a:link,a:visited {
	color: #06C;
	text-decoration: none;
}

.red {
	color: #c00;
}
-->
</style>
	</head>
	<body>
		<h1>
			发生了系统错误, 错误信息已经被记录, 请联系管理员
		</h1>
		<h2>
			<%  
				try{
			 		Logger logger =Logger.getLogger(this.getClass().getName());
					logger.error(exception.getMessage(),exception);
				}catch(Exception e){
					
				}
			 %>
		</h2>
	</body>
</html>
